package com.hr.pojo;

import java.util.ArrayList;
import java.util.List;

public class HrSalarytypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HrSalarytypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSalarytypeIsNull() {
            addCriterion("salaryType is null");
            return (Criteria) this;
        }

        public Criteria andSalarytypeIsNotNull() {
            addCriterion("salaryType is not null");
            return (Criteria) this;
        }

        public Criteria andSalarytypeEqualTo(Integer value) {
            addCriterion("salaryType =", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeNotEqualTo(Integer value) {
            addCriterion("salaryType <>", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeGreaterThan(Integer value) {
            addCriterion("salaryType >", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("salaryType >=", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeLessThan(Integer value) {
            addCriterion("salaryType <", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeLessThanOrEqualTo(Integer value) {
            addCriterion("salaryType <=", value, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeIn(List<Integer> values) {
            addCriterion("salaryType in", values, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeNotIn(List<Integer> values) {
            addCriterion("salaryType not in", values, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeBetween(Integer value1, Integer value2) {
            addCriterion("salaryType between", value1, value2, "salarytype");
            return (Criteria) this;
        }

        public Criteria andSalarytypeNotBetween(Integer value1, Integer value2) {
            addCriterion("salaryType not between", value1, value2, "salarytype");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(String value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(String value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(String value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(String value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(String value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(String value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLike(String value) {
            addCriterion("level like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotLike(String value) {
            addCriterion("level not like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<String> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<String> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(String value1, String value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(String value1, String value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andMoneylowIsNull() {
            addCriterion("moneyLow is null");
            return (Criteria) this;
        }

        public Criteria andMoneylowIsNotNull() {
            addCriterion("moneyLow is not null");
            return (Criteria) this;
        }

        public Criteria andMoneylowEqualTo(Double value) {
            addCriterion("moneyLow =", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowNotEqualTo(Double value) {
            addCriterion("moneyLow <>", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowGreaterThan(Double value) {
            addCriterion("moneyLow >", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowGreaterThanOrEqualTo(Double value) {
            addCriterion("moneyLow >=", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowLessThan(Double value) {
            addCriterion("moneyLow <", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowLessThanOrEqualTo(Double value) {
            addCriterion("moneyLow <=", value, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowIn(List<Double> values) {
            addCriterion("moneyLow in", values, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowNotIn(List<Double> values) {
            addCriterion("moneyLow not in", values, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowBetween(Double value1, Double value2) {
            addCriterion("moneyLow between", value1, value2, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneylowNotBetween(Double value1, Double value2) {
            addCriterion("moneyLow not between", value1, value2, "moneylow");
            return (Criteria) this;
        }

        public Criteria andMoneyhighIsNull() {
            addCriterion("moneyHigh is null");
            return (Criteria) this;
        }

        public Criteria andMoneyhighIsNotNull() {
            addCriterion("moneyHigh is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyhighEqualTo(Double value) {
            addCriterion("moneyHigh =", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighNotEqualTo(Double value) {
            addCriterion("moneyHigh <>", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighGreaterThan(Double value) {
            addCriterion("moneyHigh >", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighGreaterThanOrEqualTo(Double value) {
            addCriterion("moneyHigh >=", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighLessThan(Double value) {
            addCriterion("moneyHigh <", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighLessThanOrEqualTo(Double value) {
            addCriterion("moneyHigh <=", value, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighIn(List<Double> values) {
            addCriterion("moneyHigh in", values, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighNotIn(List<Double> values) {
            addCriterion("moneyHigh not in", values, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighBetween(Double value1, Double value2) {
            addCriterion("moneyHigh between", value1, value2, "moneyhigh");
            return (Criteria) this;
        }

        public Criteria andMoneyhighNotBetween(Double value1, Double value2) {
            addCriterion("moneyHigh not between", value1, value2, "moneyhigh");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}